import { createSSRApp } from "vue"
import App from "./App.vue"
import pinia from "./store/index"
import VueLazyload from 'vue-lazyload'
import loadimage from "./static/loading.gif"
import errorimage from "./static/jiazaishibai.jpg"



export function createApp() {
	const app = createSSRApp(App)
	app.use(VueLazyload, {
		preLoad: 1.3,
		error: errorimage,
		loading: loadimage,
		attempt: 1
	})
	app.use(pinia)
	return {
		app
	};
}
